using System;
using System.Collections;
using System.Text;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace MyCollections.Model
{
    [Serializable]
    [XmlRoot(Namespace = null, IsNullable = true, ElementName = "movie-imdb")]
    public class Imdb
    {
        [XmlElement]
        public string id;

        [XmlElement]
        public string title;

        [XmlElement]
        public string year;

        [XmlElement]
        public string director;

        [XmlElement]
        public string writer;

        [XmlElement]
        public string tagline;

        [XmlElement]
        public string plot;

        [XmlArrayItem]
        public Hashtable certification;

        [XmlElement("user-ratting")]
        public string user_ratting;

        [XmlArrayItem("user-comment")]
        public string[] user_comment;
        
        [XmlElement]
        public string language;

        [XmlElement]
        public string color;

        [XmlElement]
        public string sound;

        [XmlElement]
        public string country;

        [XmlElement("picture-url")]
        public string pictureurl;

        [XmlElement]
        public string url;

        [XmlArrayItem("data")]
        public string[] genre;
        
        [XmlElement("actor")]
        public string[] actors;
    }
}
